package com.enqualcomm.kids.activities;

import android.view.View;
import android.widget.TextView;

import com.enqualcomm.kids.R;
import com.enqualcomm.kids.base.BaseActivity;
import com.enqualcomm.kids.config.userdefault.AppDefault;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

/**
 * Created by Sunzhigang on 2016/10/20.
 */
@EActivity(R.layout.activity_show_bind_account)
public class ShowBindAccountActivity extends BaseActivity {

    @ViewById(R.id.account_tv)
    TextView account_tv;
    private AppDefault appDefault;


    @AfterViews
    void setupViews() {
        TextView title_bar_name = (TextView) findViewById(R.id.title_bar_title_tv);
        title_bar_name.setText(getString(R.string.system_settings));

        TextView title_bar_terminal_name_tv = (TextView) findViewById(R.id.title_bar_terminal_name_tv);
        View title_bar_terminal_icon_iv = findViewById(R.id.title_bar_terminal_icon_iv);
        title_bar_terminal_icon_iv.setVisibility(View.GONE);
        title_bar_terminal_name_tv.setVisibility(View.VISIBLE);
        title_bar_terminal_name_tv.setText("绑定信息");
        appDefault = new AppDefault();
        account_tv.setText(appDefault.getUsername());
    }

    @Click({R.id.title_bar_left_iv, R.id.submit_btn})
    void gofinish() {
        finish();
    }
}
